﻿namespace Orpheus.Analyzer
{
    public class Note
    {
        public int IndexInOctave { get; set; }

        public OctaveNames Octave { get; set; }

        public double AbsolutePitch
        {
            get { return NotePitchHelper.GetNoteFrequency(this); }
        }

        public override bool Equals(object obj)
        {
            var note = obj as Note;
            return note != null && (IndexInOctave == note.IndexInOctave && Octave == note.Octave);
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}